from flask import Blueprint

main = Blueprint('main', __name__)

from . import errors

x = 0
def cnt():
    global x
    x = x + 1
    return str(x)

@main.route('/', methods=['GET', 'POST'])
def index():
    from manage import app
    from app import db
    from ..models import Log
    if False:
        raise Exception('asdf')
    return cnt()

@main.app_context_processor
def inject_permissions():
    print('-------------------------->')
